# 查找当前目录下的所有源文件
# 并将名称保存到 DIR_examples_SRCS 变量
#aux_source_directory(. DIR_LCD_DRV_SRCS)

file(GLOB_RECURSE DIR_APP_SRCS "*.c" "*.cpp")

#include_directories(../freertos/include)
#include_directories(../freertos/portable/ThirdParty/GCC/RP2040/include)

# 生成链接库
add_library(APP ${DIR_APP_SRCS})
#target_link_libraries(lcd Config LCD OLED Infrared Icm20948 GUI Fonts  pico_stdlib hardware_spi hardware_i2c hardware_pwm)
#target_link_libraries(LCD_DRV PUBLIC  pico_stdlib hardware_spi hardware_i2c hardware_pwm)
#target_link_libraries(LCD_DRV PUBLIC Config LCD)
target_include_directories(APP PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_include_directories(APP PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/Accounts")
target_include_directories(APP PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/Utils/AccountSystem")
target_include_directories(APP PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/ConfigS")
target_include_directories(APP PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/Pages")
target_include_directories(APP PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/Resources")
target_include_directories(APP PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/Utils/PageManager")
target_include_directories(APP PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/Utils/lv_ext")
target_include_directories(APP PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/ui")